//
//  NSObject+MKUITheme.h
//  MKUI
//
//  Created by 苏尚进 on 2021/3/20.
//  Copyright © 2021 moon. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MKUIThemePickerProtocol.h"
extern NSString * _Nullable const kMKUIThemeUpdateNotification;
NS_ASSUME_NONNULL_BEGIN

@interface NSObject (MKUITheme)
- (void)mktheme_setPicker:(nullable id<MKUIThemePickerProtocol>)picker;//设置picker时，会应用一次主题
- (void)mktheme_removePickerForKey:(NSString *)key;
- (nullable id<MKUIThemePickerProtocol>)mktheme_getPickerForKey:(NSString *)key;

/// 原来的performSelector:方法，如果返回基本类型(比如 void，int，结构体，枚举)，可能会闪退。因此这里对基本类型进行处理，返回nil或者NSNumber、NSValue。非基本类型，返回原来的performSelector:值
/// @param aSelector 选择器
- (nullable id)mktheme_performSelector:(SEL)aSelector;
@end
NS_ASSUME_NONNULL_END
